import instance from '../utils/request'
const getarticledatail = id => {
  return instance({
    method: 'get',
    url: '/v1_0/articles/' + id
  })
}
// 抽取api 关注用户
const followUser = ({ target }) => {
  return instance({
    url: '/v1_0/user/followings',
    method: 'post',
    data: {
      target
    }
  })
}
// 抽取api 取关用户
const unFollowUser = ({ target }) => {
  return instance({
    url: '/v1_0/user/followings/' + target,
    method: 'delete'
  })
}

export { getarticledatail, followUser, unFollowUser }
